package edu.ucsb.cs.cs185.supercam;

import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;

public class CavgDialog extends DialogFragment {
	/*
	@Override
	public void onCreate(Bundle savedInstanceState) {
		
	}
	
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
		View v = inflater.inflate(R.layout.cavg_dialog, container, false);
		Button RGBmode = (Button) v.findViewById(R.id.rgbmode);
		Button Hexmode = (Button) v.findViewById(R.id.hexmode);
		Button Colormode = (Button) v.findViewById(R.id.colormode);
		return v;
	}
	*/
	@Override
	public Dialog onCreateDialog(Bundle savedInstanceState) {
	    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
	    // Get the layout inflater
	    LayoutInflater inflater = getActivity().getLayoutInflater();
	    
	    //Get View
	    final View view = inflater.inflate(R.layout.cavg_dialog, null);

	    // Inflate and set the layout for the dialog
	    // Pass null as the parent view because its going in the dialog layout
	    builder.setTitle(R.string.action_display)
	    		.setView(view);
	    
	    return builder.create();
	}
}
